@if(count($topics) > 0)
<ul class="list-group mt-2">
    @foreach($topics as $topic)
         <li class="list-group-item d-flex align-items-center border-0 border-bottom py-2">
            <a href="{{$topic->link()}}" class="text-success text-decoration-none flex-grow-1">
                 {{$topic->title}}
            </a>
             <small class="text-secondary" style="min-width:max-content;">
                 <span class="badge rounded-pill text-bg-secondary">{{$topic->reply_count}} 回复</span>
                 <span>     •     </span>
                 <i class="fa-regular fa-clock "></i>
                 {{$topic->created_at->diffForHumans()}}
             </small>
         </li>
    @endforeach
</ul>
@include('shared._pages',['list'=>$topics])
@else
    <div class="mt-4 text-center text-secondary">
        暂无数据~
    </div>
@endif
